﻿#ifndef INITGLWIDGET_H
#define INITGLWIDGET_H

#include <GL/glut.h>

// 窗体宽高
static float Width = 1000;
static float Height = 560;

class GLWidget
{
public:
    static GLWidget *getInstance();
    void setScreenFull(bool is_full);
    ~GLWidget();

private:
    GLWidget();
    GLWidget(const GLWidget &) = delete;
    GLWidget &operator=(const GLWidget &) = delete;

    int window;
};

/**
 * @brief 加载纹理资源
 * @param path 纹理图片路径
 * @return 纹理对象
 */
unsigned int loadTexture(const char *path);
#endif // INITGLWIDGET_H
